package com.meituan.sdk.model.ddzh.technician.technicianTechinfoScheduleconfig;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 手艺人排班计划配置
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/technician/techinfo/scheduleconfig",
    businessId = 58,
    apiVersion = "10004",
    apiName = "technician_techinfo_scheduleconfig",
    needAuth = true
)
public class TechnicianTechinfoScheduleconfigRequest implements MeituanRequest<TechnicianTechinfoScheduleconfigResponse> {
    /**
    * <p data-diff-id="ct-diff-id-73231ece-2dbc-4370-89e6-0b9129cab819">库存同步列表，最多传入20个</p>
    */
    @NotEmpty(message = "scheduleConfigList不能为空")
    @SerializedName("scheduleConfigList")
    private List<TechScheduleConfigBo> scheduleConfigList;

    public List<TechScheduleConfigBo> getScheduleConfigList() {
        return scheduleConfigList;
    }
    public void setScheduleConfigList(List<TechScheduleConfigBo> scheduleConfigList) {
        this.scheduleConfigList = scheduleConfigList;
    }


    @Override
    public MeituanResponse<TechnicianTechinfoScheduleconfigResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TechnicianTechinfoScheduleconfigResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TechnicianTechinfoScheduleconfigRequest{" + "scheduleConfigList=" + scheduleConfigList + "}";
    }
}
